#!/bin/bash
echo "This script must be run at the root of the Rails application"
echo "Dropping database..."
rake db:drop
echo "Database dropped."
echo "Migrating database..."
rake db:migrate
echo "Database migrated."
echo "Populating database..."
ruby script/populate
echo "Database populated."
echo "Getting countries..."
ruby script/get_country
echo "Done."
echo "Generating CSV..."
ruby script/csv
echo "Done."
echo "Finished."
